﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:metro="http://schemas.codeplex.com/elysium/theme" x:Class="ControlIPApp.ucConsultRegisters" 
             mc:Ignorable="d" MinWidth="364" MinHeight="200" Height="264.667" Width="415.333">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="123" />
            <ColumnDefinition Width="Auto" MinWidth="127" />
            <ColumnDefinition Width="49*" />
            <ColumnDefinition Width="116*"/>
            <ColumnDefinition Width="0" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="37*" />
            <RowDefinition Height="187*" />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>
        <DataGrid AutoGenerateColumns="False" ItemsSource="{Binding}" HorizontalAlignment="Stretch" Margin="2,4,10,2" x:Name="dataGrid1" VerticalAlignment="Stretch" Grid.Row="1" Grid.ColumnSpan="3" SelectionUnit="FullRow" SelectionChanged="dataGrid1_SelectionChanged" Grid.Column="1">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Data" Width="20*" Binding="{Binding BeginDate}"/>
                <DataGridTextColumn Header="Horas"  Width="10*"  Binding="{Binding TotalInHours}"/>
                <DataGridTextColumn Header="Descrição"  Width="50*"  Binding="{Binding DisplayDescr}"/>

            </DataGrid.Columns>
        </DataGrid>


        <Label Content="data inicio" HorizontalAlignment="Stretch" Margin="0,10,0,6" x:Name="label1" VerticalAlignment="Stretch" FontWeight="Light" FontSize="13" VerticalContentAlignment="Center" Padding="5,0" HorizontalContentAlignment="Stretch" />
        <Label Content="data fim" FontSize="13" FontWeight="Light" Margin="0,10,4,6" x:Name="label2" Padding="5,0" VerticalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2" />
        <DatePicker HorizontalContentAlignment="Stretch" Margin="0,10,0,6" x:Name="dtBegin" Padding="2,2,0,2" VerticalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Light" FontSize="13" Grid.Column="1" />
        <DatePicker HorizontalContentAlignment="Stretch" Margin="1,10,14,6" x:Name="dtEnd" Padding="2,2,0,2" VerticalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" Grid.Column="3" FontWeight="Light" FontSize="13" />
        <Button Content="Consultar" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" x:Name="button1" Margin="10,1,54,2" Padding="5,0,0,5" Click="button1_Click" />
        <Button Content="expor" Grid.Column="3" HorizontalAlignment="Left" Margin="1,1,0,0" Grid.Row="2" VerticalAlignment="Top" Width="66" Click="Button_Click_1" Height="32"/>
        <Grid Margin="0,3,0,0" Grid.Row="2" Grid.ColumnSpan="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="177*"/>
                <ColumnDefinition Width="3*"/>
            </Grid.ColumnDefinitions>
        </Grid>
    </Grid>
</UserControl>
